package com.it;

import com.it.task.MyAsync;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class MySeckillApplication {
    public static void main(String[] args) {
        ConfigurableApplicationContext run = SpringApplication.run(MySeckillApplication.class, args);
        MyAsync bean = run.getBean(MyAsync.class);
        bean.asyncAddOrder();
    }
}
